﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DetailFriend.aspx.cs" Inherits="GUI_DetailFriend"  MasterPageFile="~/Template/Master.master" Title="Friend Detail"%>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table cellpadding="3" cellspacing="0" border="0" width="100%">
<tr>
    <td>
        <asp:HiddenField ID="HiddenUserID" runat="server" />
    
        <asp:DataList ID="DataList1" runat="server" Width="100%" DataKeyField="UserID" 
            DataSourceID="SqlDataSource1">
            <ItemTemplate>
               <div style="font-family:Tahoma; font-size:12px; font-weight:normal; color:White"  >
                <table  cellspacing="0" cellpadding="2" border="0" width="100%" style="height:192px">
                <tr>
                    <td>                      
                        
                        <table cellpadding="0" cellspacing="0" border="0">
                        <tr>
                            <td>
                                  <asp:Image id="d" runat="server" ImageUrl='<%#"~/images/"+Eval("U_image") %>' Width="150px" Height="150px"/>
                            </td>
                        </tr>                        
                        </table>
                                    
                    </td>
                    <td>
                        <table cellpadding="3" cellspacing="0" border="0" width="100%" style="border-left:solid 1px gray;">
                         <tr>
                            <td style="width:40%; border-bottom:dotted 1px gray "><strong>Member ID: 
                                <br />
                                </strong> </td>
                            <td style="border-bottom:dotted 1px gray"><asp:Label ID="Label4" runat="server" Text='<% #Eval("UserID") %>'></asp:Label>&nbsp</td>                            
                                                                                    
                        </tr>
                        
                        <tr>
                            <td style="width:40%; border-bottom:dotted 1px gray "><strong>Full name: 
                                <br />
                                </strong> </td>
                            <td style="border-bottom:dotted 1px gray"><asp:Label ID="lblten" runat="server" Text='<% #Eval("U_fullname") %>'></asp:Label>&nbsp</td>                            
                                                                                    
                        </tr>
                        <tr>
                            <td style="border-bottom:dotted 1px gray"><strong>Address: 
                                <br />
                                </strong></td>
                            <td style="border-bottom:dotted 1px gray"><asp:Label ID="Label1" runat="server" Text='<% #Eval("U_address")%>' ></asp:Label>&nbsp</td>
                            <td></td>
                            <td></td>                             
                        </tr>
                        <tr>
                            <td style="border-bottom:dotted 1px gray"><strong>Birthday: 
                                <br />
                                </strong></td>
                            <td style="border-bottom:dotted 1px gray"><asp:Label ID="Label2" runat="server" Text='<% #Eval("U_DOB")%>'></asp:Label>&nbsp</td>
                            <td></td>
                            <td></td> 
                        </tr>
                        <tr>
                            <td style="border-bottom:dotted 1px gray"><strong>Mobile number: 
                                <br />
                                </strong></td>
                            <td style="border-bottom:dotted 1px gray"><asp:Label ID="Label3" runat="server" Text='<% #Eval("U_mobile") %>'></asp:Label>&nbsp</td>
                            <td></td>
                            <td></td> 
                        </tr> 
                        
                        <tr>
                            <td style="border-bottom:dotted 1px gray"><strong>Email: 
                                <br />
                                </strong></td>
                            <td style="border-bottom:dotted 1px gray"><asp:Label ID="Label5" runat="server" Text='<% #Eval("U_email") %>'></asp:Label>&nbsp</td>
                            <td></td>
                            <td></td> 
                        </tr>                                                                                                 
                         <tr>  
                             <td >
                                                           
                            </td>                          
                        </tr>
                        
                        </table>
                    </td>
                </tr>               
                </table>            
                
                </div>                                                              
            </ItemTemplate>
        </asp:DataList>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:connection %>" 
            SelectCommand="SELECT * FROM [User] WHERE ([UserID] = @UserID)">
            <SelectParameters>
                <asp:ControlParameter ControlID="HiddenUserID" Name="UserID" PropertyName="Value" />
                     
            </SelectParameters>
        </asp:SqlDataSource>
        <br />
        <br />
        <br />
        <br />
        <asp:Button ID="btnBack" runat="server" PostBackUrl="~/GUI/ViewFriend.aspx" 
            Text="Back !<<<" />
        <br />
        <br />
        <br />
        <br />
        <br />
    </td>
</tr>

</table>
</asp:Content>